package com.zhouyu.gamecommunity.service;

import com.alibaba.fastjson.JSONObject;
import com.zhouyu.gamecommunity.entity.Game;
import com.zhouyu.gamecommunity.entity.PageData;
import com.zhouyu.gamecommunity.entity.Result;

import java.util.List;

public interface CommonService {

    String createVerifyCode(String userId);

    Result<Integer> attentionGame(String userId, String gameId);

    Result<Integer> deleteAttention(String userId, String gameId);

    Result<PageData<JSONObject>> getGameComment(JSONObject params);

    Result<Integer> countComment(JSONObject params);

    Result<Integer> addComment(JSONObject params);

    Result<Integer> addArticle(JSONObject params);

    Result<List<JSONObject>> getArticle(JSONObject params);

    Result<List<JSONObject>> getArticleContent(String id);

    Result<List<JSONObject>> getArticleBanner(String id);

    Result<List<JSONObject>> getUserAttentionList(String id);

    Result<List<JSONObject>> getTopicList(JSONObject params);

    Result<Integer> subscribeTopic(String userId, String topicId);

    Result<Integer> deleteSubscribe(String userId, String topicId);

    Result<Integer> likeObject(JSONObject params);

    Result<List<Game>> searchGame(JSONObject params);

    Result<List<JSONObject>> getUpList(JSONObject params);

    Result<Integer> attentionUser(JSONObject params);
}
